CRPEngine::PrintReport

Use CRPEngine::PrintReport to provide a quick but limited way to print a report. The report may be sent only to a printer or preview window or both. Use this class method any time that you simply want to print a report from an application without giving the user the ability to customize the report.

Syntax
short PrintReport (
        const _TCHAR *reportFilePath,
        BOOL toPrinter,
        BOOL toWindow,
        const _TCHAR *title,
        int left,
        int top,
        int width,
        int height,
        DWORD style,
        CWnd *parentWindow );
Parameters

reportFilePath

Specifies a pointer to the filename and path of the report to be printed.

toPrinter

Specifies whether the report is to be sent to the default printer.

toWindow

Specifies whether the report is to be displayed in a preview window.

title

Specifies a pointer to the title string that you want to appear in the title bar (if the report is being sent to a preview window).

left

Specifies the x coordinate of the upper left-hand corner of the preview window, in device coordinates.

top

Specifies the y coordinate of the upper left-hand corner of the preview window, in device coordinates.

width

Specifies the width of the preview window, in device coordinates.

height

Specifies the height of the preview window, in device coordinates.

style

Specifies the style of the window being created. The style setting can be combined using the bitwise "OR" operator. Refer to the CWnd class in the Microsoft Foundation Class Library reference for possible window styles.

parentWindow

Specifies a pointer to the CWnd object for the window that is the parent of the preview window. Specify NULL if the preview window will not have a parent window.

Returns


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com